<template>
  <el-header class="navbar">
    <div class="nav-left">
      <el-button type="text">Home</el-button>
      <el-button type="text">About</el-button>
    </div>
    <div class="nav-right">
      <el-button type="primary" @click="handleLogin">Login</el-button>
      <el-button type="primary" @click="handleRegister">Register</el-button>
    </div>
  </el-header>
</template>

<script>
export default {
  methods: {
    handleLogin() {
      // 登录逻辑
    },
    handleRegister() {
      // 注册逻辑
    }
  }
}
</script>

<style scoped>
.navbar {
  display: flex;
  justify-content: space-between;
  padding: 0 20px;
}
.nav-left,
.nav-right {
  display: flex;
  align-items: center;
}
</style>
